package org.jeecg.modules.sggg.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 健康课堂表
 * @Author: jeecg-boot
 * @Date:   2022-10-17
 * @Version: V1.0
 */
@Data
@TableName("sg_health_class")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sg_health_class对象", description="健康课堂表")
public class SgHealthClass implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**新闻标题*/
	@Excel(name = "新闻标题", width = 15)
    @ApiModelProperty(value = "新闻标题")
    private String title;
	/**新闻内容*/
	@Excel(name = "新闻内容", width = 15)
    @ApiModelProperty(value = "新闻内容")
    private String content;
	/**封面*/
	@Excel(name = "封面", width = 15)
    @ApiModelProperty(value = "封面")
    private String cover;
	/**类型(血压，血糖，血脂，生活，血脑血管，口腔，骨骼，呼吸系统，消化道系统)*/
	@Excel(name = "类型(血压，血糖，血脂，生活，血脑血管，口腔，骨骼，呼吸系统，消化道系统)", width = 15, dicCode = "health_type")
	@Dict(dicCode = "health_type")
    @ApiModelProperty(value = "类型(血压，血糖，血脂，生活，血脑血管，口腔，骨骼，呼吸系统，消化道系统)")
    private Integer type;
	/**发布状态(0已发布1未发布)*/
	@Excel(name = "发布状态(0已发布1未发布)", width = 15, dicCode = "health_publish")
	@Dict(dicCode = "health_publish")
    @ApiModelProperty(value = "发布状态(0已发布1未发布)")
    private Integer publishType;
	/**发布时间*/
	@Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date publishDate;
    /**简介*/
    @Excel(name = "简介", width = 15)
    @ApiModelProperty(value = "简介")
    private String synopsis;
    /**阅读量*/
    @Excel(name = "阅读量", width = 15)
    @ApiModelProperty(value = "阅读量")
    private Integer reading;
}
